package com.hmkj.core.mapper.fqa;

import com.hmkj.common.baseMapper.GenericMapper;
import com.hmkj.core.po.fqa.FqaCategory;
import com.hmkj.core.po.sysNotice.SystemNotice;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * 问题类型相关Dao接口<br>
 *
 * @author lizhijie
 * @date   2018-07-04 05:34:12
 */
public interface FqaCategoryMapper extends GenericMapper< FqaCategory,Integer> {
        @Select("SELECT t.* FROM s_fqa_category t WHERE 1=1 ${whereSql} ${sortSql} limit ${nowPage}, ${pageSize} ")
        List<FqaCategory> findListBySqlJoin(Map<String, Object> params);

        @Select("SELECT count(1) FROM s_fqa_category t WHERE 1=1 ${whereSql}")
        long countBySqlJoin(Map<String, Object> params);
}
